<template>
    <div>
        <h2>this is home page</h2>
        <p>{{ title }}</p>
    </div>
</template>

<script>
module.exports = {
    created () {
        this.$store.dispatch('getData', location.search)
    },
    computed: {
        title () {
            return this.$store.getters.data.title
        }
    }
}
</script>
